﻿using DexERP.EntityFramework.Model;
using System.Data.Entity;

namespace DexERP.EntityFramework
{
    public class DexERPDbContext : DbContext
    {
        public virtual IDbSet<Employee> Employee { get; set; }

        public DexERPDbContext()
        : base("DexERPConnection")
        {

        }
        public DexERPDbContext(string ConnStr)
            : base(ConnStr)
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

            modelBuilder.Entity<Employee>().ToTable("Employee");
        }
    }
}
